﻿#region 命名空间

using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using WinnerCMS.Common;
using System.Runtime.Serialization;

#endregion

namespace WinnerCMS.BLL
{
    [Serializable]
    public class Rules
    {
        [DataMember]
        public string Templates { get; set; }

        [XmlElement("Rule")]
        public List<Rule> Datas { get; set; }
    }

    [Serializable]
    public class Rule
    {
        private string _newPath = "";

        public string NewPath
        {
            get { return this._newPath; }
            set { this._newPath = value; }
        }

        /// <summary>
        /// 已编译的正则表达式项
        /// </summary>
        [XmlIgnore]
        public Regex NewPathRegex { get; set; }

        private string _realPath = "";

        public string RealPath
        {
            get { return this._realPath; }
            set { this._realPath = value; }
        }
    }
}